<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Spring Initializr - 快速构建Spring Boot项目</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .text-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-weight: bold;
            flex-shrink: 0;
        }
        .feature-icon {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: -0.2rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6 text-center">
            <div class="mb-6">
                <i class="fas fa-rocket text-6xl opacity-80"></i>
            </div>
            <h1 class="text-5xl font-bold mb-4">Spring Initializr</h1>
            <p class="text-xl opacity-90 max-w-2xl mx-auto">快速构建 Spring Boot 项目的智能化工具</p>
            <div class="mt-8">
                <a href="https://start.spring.io/" target="_blank" class="inline-flex items-center bg-white text-purple-700 px-8 py-3 rounded-full font-semibold hover:bg-gray-100 transition duration-300">
                    <i class="fas fa-external-link-alt mr-2"></i>
                    立即开始
                </a>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="container mx-auto px-6 py-12">
        <!-- Introduction Card -->
        <div class="bg-white rounded-2xl shadow-xl p-8 mb-12 card-hover">
            <h2 class="text-3xl font-bold mb-6 text-gray-800">
                <i class="fas fa-info-circle text-gradient mr-3"></i>
                什么是 Spring Initializr？
            </h2>
            <p class="text-lg text-gray-700 leading-relaxed">
                <span class="drop-cap">S</span>pring Initializr 是一个强大的 Web 工具，专为开发者设计，旨在帮助快速生成 Spring Boot 项目骨架。通过其简洁直观的界面，开发者可以轻松配置项目的基本信息，一键生成包含必要依赖和配置的基础项目结构，极大地提升了开发效率。
            </p>
        </div>

        <!-- Core Features -->
        <div class="grid md:grid-cols-2 gap-8 mb-12">
            <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                <div class="flex items-start mb-4">
                    <i class="fas fa-file-code text-3xl feature-icon mr-4"></i>
                    <div>
                        <h3 class="text-xl font-bold text-gray-800 mb-2">项目元数据</h3>
                        <p class="text-gray-600">配置项目名称、描述、包名、Java 版本等基础信息，为项目奠定坚实基础。</p>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                <div class="flex items-start mb-4">
                    <i class="fas fa-puzzle-piece text-3xl feature-icon mr-4"></i>
                    <div>
                        <h3 class="text-xl font-bold text-gray-800 mb-2">依赖项管理</h3>
                        <p class="text-gray-600">智能选择 Web、数据访问、消息中间件等依赖，构建功能完备的应用。</p>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                <div class="flex items-start mb-4">
                    <i class="fas fa-tools text-3xl feature-icon mr-4"></i>
                    <div>
                        <h3 class="text-xl font-bold text-gray-800 mb-2">构建工具</h3>
                        <p class="text-gray-600">灵活支持 Maven 或 Gradle，满足不同团队的技术栈需求。</p>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                <div class="flex items-start mb-4">
                    <i class="fas fa-code-branch text-3xl feature-icon mr-4"></i>
                    <div>
                        <h3 class="text-xl font-bold text-gray-800 mb-2">版本选择</h3>
                        <p class="text-gray-600">自由选择所需的 Spring Boot 版本，确保项目兼容性和稳定性。</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Workflow Visualization -->
        <div class="bg-white rounded-2xl shadow-xl p-8 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800 text-center">
                <i class="fas fa-sitemap text-gradient mr-3"></i>
                工作流程图
            </h2>
            <div class="mermaid">
                graph LR
                    A[开始] --> B[访问 Spring Initializr]
                    B --> C[配置项目参数]
                    C --> D[选择依赖项]
                    D --> E[生成项目]
                    E --> F[下载压缩包]
                    F --> G[导入 IDE]
                    G --> H[开始开发]
                    
                    style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                    style H fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                    style B fill:#f093fb,stroke:#333,stroke-width:2px
                    style C fill:#f093fb,stroke:#333,stroke-width:2px
                    style D fill:#f093fb,stroke:#333,stroke-width:2px
                    style E fill:#f5576c,stroke:#333,stroke-width:2px
                    style F fill:#f5576c,stroke:#333,stroke-width:2px
                    style G fill:#f5576c,stroke:#333,stroke-width:2px
            </div>
        </div>

        <!-- Steps Section -->
        <div class="bg-white rounded-2xl shadow-xl p-8 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-list-ol text-gradient mr-3"></i>
                使用步骤
            </h2>
            <div class="space-y-6">
                <div class="flex items-start">
                    <div class="step-number">1</div>
                    <div class="ml-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-2">访问官方网站</h3>
                        <p class="text-gray-600">打开浏览器，访问 <a href="https://start.spring.io/" target="_blank" class="text-purple-600 hover:text-purple-800 underline">Spring Initializr 官方网站</a>，进入项目生成界面。</p>
                    </div>
                </div>
                
                <div class="flex items-start">
                    <div class="step-number">2</div>
                    <div class="ml-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-2">配置项目参数</h3>
                        <p class="text-gray-600">选择项目类型（Maven/Gradle）、编程语言（Java/Kotlin/Groovy）、Spring Boot 版本，填写项目元数据（Group、Artifact、Name），并选择所需依赖。</p>
                    </div>
                </div>
                
                <div class="flex items-start">
                    <div class="step-number">3</div>
                    <div class="ml-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-2">生成项目</h3>
                        <p class="text-gray-600">配置完成后，点击 "Generate" 按钮，系统将自动生成项目并下载压缩包。</p>
                    </div>
                </div>
                
                <div class="flex items-start">
                    <div class="step-number">4</div>
                    <div class="ml-6">
                        <h3 class="text-xl font-semibold text-gray-800 mb-2">解压并导入</h3>
                        <p class="text-gray-600">将下载的项目压缩包解压，导入到您喜欢的 IDE（如 IntelliJ IDEA、Eclipse）中，即可开始开发。</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Advantages -->
        <div class="bg-gradient-to-r from-purple-50 to-pink-50 rounded-2xl p-8 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800 text-center">
                <i class="fas fa-star text-gradient mr-3"></i>
                核心优势
            </h2>
            <div class="grid md:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl p-6 text-center card-hover">
                    <i class="fas fa-rocket text-4xl text-purple-600 mb-4"></i>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">快速启动</h3>
                    <p class="text-gray-600">简化 Spring Boot 项目创建流程，让项目能够迅速启动并投入开发，节省宝贵时间。</p>
                </div>
                
                <div class="bg-white rounded-xl p-6 text-center card-hover">
                    <i class="fas fa-sliders-h text-4xl text-pink-600 mb-4"></i>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">高度灵活</h3>
                    <p class="text-gray-600">自由选择 Spring Boot 版本和依赖项，生成的项目结构完全符合 Spring Boot 最佳实践。</p>
                </div>
                
                <div class="bg-white rounded-xl p-6 text-center card-hover">
                    <i class="fas fa-plug text-4xl text-indigo-600 mb-4"></i>
                    <h3 class="text-xl font-bold text-gray-800 mb-3">无缝集成</h3>
                    <p class="text-gray-600">生成的项目可无缝集成到各种开发工具和构建系统中，如 Maven、Gradle 等。</p>
                </div>
            </div>
        </div>

        <!-- Call to Action -->
        <div class="text-center py-12">
            <h2 class="text-3xl font-bold text-gray-800 mb-6">准备好开始您的 Spring Boot 之旅了吗？</h2>
            <a href="https://start.spring.io/" target="_blank" class="inline-flex items-center bg-gradient-to-r from-purple-600 to-pink-600 text-white px-10 py-4 rounded-full font-semibold text-lg hover:from-purple-700 hover:to-pink-700 transition duration-300 shadow-lg">
                <i class="fas fa-play-circle mr-3"></i>
                立即创建项目
            </a>
        </div>
    </div>

    <script>
        mermaid.initialize({ 
            startOnLoad: true,
            theme: 'default',
            themeVariables: {
                primaryColor: '#667eea',
                primaryTextColor: '#fff',
                primaryBorderColor: '#7c3aed',
                lineColor: '#5a67d8',
                secondaryColor: '#f093fb',
                tertiaryColor: '#f5576c'
            }
        });
    </script>
</body>